package org.dromara.hm.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.hm.domain.HmStockChange;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 库存变更明细视图对象 hm_stock_change
 *
 * @author hzy
 * @date 2025-04-01
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HmStockChange.class)
public class HmStockChangeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 变更id
     */
    @ExcelProperty(value = "变更id")
    private Long changeId;


    /**
     * 库存id
     */
    private Long stockId;

    /**
     * 变更数量
     */
    @ExcelProperty(value = "变更数量")
    private Integer changeNum;

    /**
     * 变更时间
     */
    @ExcelProperty(value = "变更时间")
    private Date changeTime;

    /**
     * 变更详情
     */
    @ExcelProperty(value = "变更详情")
    private String changeInfo;

    /**
     * 变更类型
     */
    @ExcelProperty(value = "变更类型")
    private String changeType;

    /**
     * 变更商品
     */
    @ExcelProperty(value = "变更商品")
    private String productId;

    /**
     * 变更商品名称
     */
    @ExcelProperty(value = "变更商品名称")
    private String productName;

    /**
     * 证明材料
     */
    @ExcelProperty(value = "证明材料")
    private String proof;

    /**
     * 提货人id
     */
    @ExcelProperty(value = "提货人id")
    private String operatorId;

    /**
     * 提货人
     */
    @ExcelProperty(value = "提货人")
    @Translation(type = TransConstant.CUSTOMER_ID_TO_NAME, mapper = "operatorId")
    private String operator;

    /**
     * 记录起始所在仓库
     */
    @ExcelProperty(value = "记录起始所在仓库")
    private String recordStartLocation;

    /**
     * 记录终点所在仓库
     */
    @ExcelProperty(value = "记录终点所在仓库")
    private String recordEndLocation;

    /**
     * 记录起始所在仓库名称
     */
    @ExcelProperty(value = "记录起始所在仓库名称")
    @Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "recordStartLocation")
    private String recordStartLocationName;

    /**
     * 记录终点所在仓库名称
     */
    @ExcelProperty(value = "记录终点所在仓库名称")
    @Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "recordEndLocation")
    private String recordEndLocationName;

    /**
     * 详情
     */
    @ExcelProperty(value = "详情")
    private String remark;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 订单id
     */
    private Long orderId;


}
